// import styles from './index.less';

import { notification } from "antd";

interface Props {
  type?: 'success' | 'info' | 'warning' | 'error';
  message: string;
  description?: string;
  style?: {
    [propsName: string]: string | number;
  };
}

const OpenNotification = ({
  type = 'info',
  message = '',
  description = '',
  style = {},
}: Props): void => {
  notification[type]({
    message,
    description,
    // className: styles.nftNotification,
    style,
  });
};

export default OpenNotification;
